<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="./style.css" rel="stylesheet">
<title>Insert title here</title>
</head>
<body>
	<div class="div-body">
		<div class="nav-title-bar">
			<span>AMC - Merchant System</span>
		</div>

		<div class="content-menu">
			<ul class="content-menu-ul">
			</ul>
		</div>
		<div class="content-content">
			<form action="AddFoodsServlet" method="POST"
				enctype="multipart/form-data" style="width: 450px;">
				<table style="text-align: center;">
					<tbody>
						<tr>
							<td>foodName:</td>
							<td><input type="text" name="foodName" /></td>
						</tr>
						<tr>
							<td>foodPrice:</td>
							<td><input type="text" name="foodPrice" /></td>
						</tr>
						<tr>
							<td>foodPic:</td>
							<td><input type="file" name="foodPic" style="width: 83%;"/></td>
						</tr>
						<tr>
							<td>foodFoodType:</td>
							<td><select name="foodFoodType"   style="width: 83%;" >
									<c:forEach items="${foodTypesList}" var="foodType">
										<option value="${foodType.getTypeId()}">
											${foodType.getTypeName()}</option>
									</c:forEach>
							</select></td>
						</tr>
					</tbody>
				</table>
				<input class="add-button" type="submit" value="ADD" />
			</form>
		</div>
	</div>
</body>
</html>